import router from '../router';
import store from '../store';

export default {
  //跳转到二级页面
  toSecondPage(path, name, param) {
    router.push({ path: path, params: param });
    store.dispatch('commitMenuList', {
      path: path,
      name: name
    });
  }
};
